package com.yuanrui.auth.application.convert;

import com.yuanrui.auth.application.dto.AuthRoleDTO;
import com.yuanrui.auth.domain.entity.AuthRoleBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 用户信息转换器
 */
@Mapper
public interface AuthRoleConverter {
    AuthRoleConverter INSTANCE = Mappers.getMapper(AuthRoleConverter.class);
    //将用户信息BO转换为用户信息DTO
    AuthRoleDTO convert(AuthRoleBO authRoleBO);

    //将用户信息DTO转换为用户信息BO
    AuthRoleBO convert(AuthRoleDTO authRoleDTO);
}
